//
//  CYGPushManager.h
//  RACSample
//
//  Created by jinchu01 on 2017/5/25.
//  Copyright © 2017年 tinpay. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, ReceivedNotifState) {
    /// 启动状态(点击通知才启动的)
    StateInactive,
    
    /// 运行状态(接收到通知)
    StateActive
};

@interface CYGPushManager : NSObject

// 增加当前badge数
+ (void)incBadgeNumber;

// 减少当前badge数
+ (void)decBadgeNumber;

// 0 表示不显示
+ (void)setBadgeNumber:(NSInteger)num;

+ (void)registerPush;

+ (void)registerFailWithError:(NSError *)err;

+ (void)handleDeviceToken:(NSData *)token;

+ (void)receiveRemoteNotificationWithUserInfo:(NSDictionary *)userInfo fromState:(ReceivedNotifState)state;

@end
